package com.itheima.listener;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.messaging.handler.annotation.SendTo;
import org.springframework.stereotype.Component;

@Component
public class MessageListener {

    @JmsListener(destination = "order.queue.id")
    @SendTo("order.queue.id.send")
    public String reciece(String id){
        System.out.println("消息已被处理："+id);
        return "new"+id;
    }
}
